package com.ideal.manage.esms.repository.project;

import com.ideal.manage.esms.bean.project.ThresholdManage;
import com.ideal.manage.esms.repository.framework.BaseRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ThresholdManageRepository extends BaseRepository<ThresholdManage,String> {
    @Query("select t.code from ThresholdManage t where t.isValid=1")
    List<ThresholdManage> findCode();

    @Query("select t from ThresholdManage t where t.isValid=1")
    List<ThresholdManage> findThresholdManages();

}
